package com.seadragon.app.ksr.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtils {
	public static String toString(int[] parts){
		StringBuilder sb = new StringBuilder();
		sb.append(parts[0]);
		for(int i = 1; i < parts.length; i++){
			sb.append(",");
			sb.append(parts[i]);
		}
		return sb.toString();
	}
	
	public static boolean isZip(String location){
		Pattern pattern = Pattern.compile("^[0-9]+$");
		Matcher m = pattern.matcher(location);
		if(m.matches()){
			return true;
		}
		return false;
	}
}
